﻿using Iworld.Game.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Game.Service.Backstage.Export
{
    [DataContract]
    public class GameRoundExport
    {
        public GameRoundExport(GameRound x)
        {
            this.RoundNum = x.RoundNum;
            this.PokerColor = x.PokerColor;
            this.PokerNumber = x.PokerNumber;
            this.IsClosureSingle = x.IsClosureSingle;
            this.IsLottery = x.IsLottery;
            this.LotteryTime = x.LotteryTime;
            this.IsEdited = x.IsEdited;
            this.EditTime = x.EditTime;
            this.RoundId = x.Id;
        }

        [DataMember]
        public int RoundId { set; get; }

        /// <summary>
        /// 局号
        /// </summary>
        [DataMember]
        public int RoundNum { set; get; }

        /// <summary>
        /// 开出的花色
        /// </summary>
        [DataMember]
        public PokerColor PokerColor { set; get; }

        /// <summary>
        /// 开出的数字
        /// </summary>
        [DataMember]
        public PokerNumber PokerNumber { set; get; }

        /// <summary>
        /// 是否已经封单过
        /// </summary>
        [DataMember]
        public bool IsClosureSingle { set; get; }

        /// <summary>
        /// 是否开奖
        /// </summary>
        [DataMember]
        public bool IsLottery { set; get; }

        /// <summary>
        /// 实际开奖的时间
        /// </summary>
        [DataMember]
        public DateTime? LotteryTime { get; set; }

        /// <summary>
        /// 是否被编辑过
        /// </summary>
        [DataMember]
        public bool IsEdited { set; get; }

        /// <summary>
        /// 编辑时间
        /// </summary>
        [DataMember]
        public DateTime? EditTime { set; get; }
    }
}
